// 定义一个有依赖的模块
(function (window, dataService) {
    let msg = "alerter.js"

    function showMsg() {
        console.log(msg, dataService.getName())
    }

    // 暴漏模块
    window.alerter = {showMsg}
})(window, dataService)